<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<sec:authentication property="principal" var="currentPrincipal" scope="page"/>

<div class="block-heading">
  <h5>公司基本信息</h5>
</div>

<div class="form-horizontal ms-form form-personal-info form-supplier-info">

  <div class="form-group ms-form-group">
    <label class="control-label col-xs-3 ">1&nbsp;<span class="color-red">*</span>运输公司代码：</label>
    <div class="col-xs-3 pull-left">
      <p class="form-control-static">${supplier.code}</p>
    </div>
  </div>

  <div class="form-group  ms-form-group">
    <label class="control-label col-xs-3 " style="color:${supplier.name eq version.name ? '' : 'red;'}">2&nbsp;<span
      class="color-red">*</span>运输公司现用名(全称)：</label>
    <div class="col-xs-3 pull-left">
      <p class="form-control-static">
        <span style="color:${supplier.name eq version.name ? '' : 'red;'}">${version.name}</span>
        <c:if test="${supplier.name != version.name}">(${supplier.name})</c:if>
      </p>
    </div>
  </div>

  <div class="form-group  ms-form-group">
    <label class="control-label col-xs-3" style="color:${supplierInfo.formerName eq version.formerName ? '' : 'red;'}">3.1&nbsp;运输公司曾用名I(全称)：</label>
    <div class="col-xs-3 pull-left">
      <p class="form-control-static"><span style="color:${supplierInfo.formerName eq version.formerName ? '' : 'red;'}">
        ${empty version.formerName ? '无' : version.formerName}</span>
        <c:if test="${supplierInfo.formerName != version.formerName}">(${supplierInfo.formerName})</c:if>
      </p>
    </div>
    <label class="control-label col-xs-3"
           style="color:${supplierInfo.secondFormerName eq version.secondFormerName ? '' : 'red;'}">3.2&nbsp;运输公司曾用名II(全称)：</label>
    <div class="col-xs-3 pull-left">
      <p class="form-control-static">
        <span
          style="color:${supplierInfo.secondFormerName eq version.secondFormerName ? '' : 'red;'}">${empty version.secondFormerName ? '无' : version.secondFormerName}</span>
        <c:if
          test="${supplierInfo.secondFormerName != version.secondFormerName}">(${supplierInfo.secondFormerName})</c:if>
      </p>
    </div>
  </div>

  <div class="form-group  ms-form-group">
    <label class="control-label col-xs-3" style="color:${supplierInfo.chairman eq version.chairman ? '' : 'red;'}">4&nbsp;<span
      class="color-red">*</span>董事长：</label>
    <div class="col-xs-3 pull-left">
      <p class="form-control-static">
        <span
          style="color:${supplierInfo.chairman eq version.chairman ? '' : 'red;'}">${empty version.chairman ? '无' : version.chairman}</span>
        <c:if test="${supplierInfo.chairman != version.chairman}">(${supplierInfo.chairman})</c:if>
      </p>
    </div>
  </div>

  <div class="form-group  ms-form-group">
    <label class="control-label col-xs-3" style="color:${supplierInfo.manager eq version.manager ? '' : 'red;'}">5&nbsp;<span
      class="color-red">*</span>总经理：</label>
    <div class="col-xs-3 pull-left">
      <p class="form-control-static">
        <span
          style="color:${supplierInfo.manager eq version.manager ? '' : 'red;'}">${empty version.manager ? '无' : version.manager}</span>
        <c:if test="${supplierInfo.manager != version.manager}">(${supplierInfo.manager})</c:if>
      </p>
    </div>
    <label class="control-label col-xs-3"
           style="color:${supplierInfo.managerPhone eq version.managerPhone ? '' : 'red;'}">6&nbsp;<span
      class="color-red">*</span>总经理联系电话：</label>
    <div class="col-xs-3 pull-left">
      <p class="form-control-static">
        <span
          style="color:${supplierInfo.managerPhone eq version.managerPhone ? '' : 'red;'}">${empty version.managerPhone ? '无' : version.managerPhone}</span>
        <c:if test="${supplierInfo.managerPhone != version.managerPhone}">(${supplierInfo.managerPhone})</c:if>
      </p>
    </div>
  </div>

  <div class="form-group  ms-form-group">
    <label class="control-label col-xs-3"
           style="color:${supplierInfo.managerEmail eq version.managerEmail ? '' : 'red;'}">7.1&nbsp;<span
      class="color-red">*</span>总经理Email&nbsp;I：</label>
    <div class="col-xs-3 pull-left">
      <p class="form-control-static">
        <span
          style="color:${supplierInfo.managerEmail eq version.managerEmail ? '' : 'red;'}">${empty version.managerEmail ? '无' : version.managerEmail}</span>
        <c:if test="${supplierInfo.managerEmail != version.managerEmail}">(${supplierInfo.managerEmail})</c:if>
      </p>
    </div>
    <label class="control-label col-xs-3">7.2&nbsp;总经理Email&nbsp;II：</label>
    <div class="col-xs-3 pull-left">
      <p
        class="form-control-static">${empty supplierInfo.secondManagerEmail ? '无' : supplierInfo.secondManagerEmail}</p>
    </div>
  </div>

  <div class="form-group  ms-form-group">
    <label class="control-label col-xs-3">8&nbsp;<span class="color-red">*</span>公司性质：</label>
    <div class="col-xs-3 pull-left">
      <p class="form-control-static">${empty supplierInfo.companyProperty ? '无' : supplierInfo.companyDescription}</p>
    </div>
    <label class="control-label col-xs-3"
           style="color:${supplierInfo.yearFounded eq version.yearFounded ? '' : 'red;'}">9&nbsp;<span
      class="color-red">*</span>成立年月：</label>
    <div class="col-xs-3 pull-left">
      <p class="form-control-static"><span
        style="color:${supplierInfo.yearFounded eq version.yearFounded ? '' : 'red;'}">
              <fmt:formatDate value="${version.yearFounded}" pattern="yyyy-MM"/></span>
        <c:if test="${supplierInfo.yearFounded != version.yearFounded}">(${supplierInfo.yearFounded})</c:if>
      </p>
    </div>
  </div>

  <div class="form-group  ms-form-group">
    <label class="control-label col-xs-3"
           style="color:${supplierInfo.registerCapital eq version.registerCapital ? '' : 'red;'}">10&nbsp;<span
      class="color-red">*</span>注册资金(万元)：</label>
    <div class="col-xs-3 pull-left">
      <p class="form-control-static">
        <span
          style="color:${supplierInfo.registerCapital eq version.registerCapital ? '' : 'red;'}">${empty version.registerCapital ? '无' : version.registerCapital}</span>
        <c:if test="${supplierInfo.registerCapital != version.registerCapital}">(${supplierInfo.registerCapital})</c:if>
      </p>
    </div>
    <label class="control-label col-xs-3"
           style="color:${supplierInfo.registerAddress eq version.registerAddress ? '' : 'red;'}">11&nbsp;<span
      class="color-red">*</span>注册地：</label>
    <div class="col-xs-3 pull-left">
      <p class="form-control-static">
        <span
          style="color:${supplierInfo.registerAddress eq version.registerAddress ? '' : 'red;'}">${empty version.registerAddress ? '无' : version.registerAddress}</span>
        <c:if test="${supplierInfo.registerAddress != version.registerAddress}">(${supplierInfo.registerAddress})</c:if>
      </p>
    </div>
  </div>

  <div class="form-group  ms-form-group">
    <label class="control-label col-xs-3"
           style="color:${supplierInfo.contactAddress eq version.contactAddress ? '' : 'red;'}">12&nbsp;<span
      class="color-red">*</span>联系地址：</label>
    <div class="col-xs-3 pull-left">
      <p class="form-control-static">
        <span
          style="color:${supplierInfo.contactAddress eq version.contactAddress ? '' : 'red;'}">${empty version.contactAddress ? '无' : version.contactAddress}</span>
        <c:if test="${supplierInfo.contactAddress != version.contactAddress}">(${supplierInfo.contactAddress})</c:if>
      </p>
    </div>


    <label class="control-label col-xs-3" style="color:${supplierInfo.formerName eq version.formerName ? '' : 'red;'}">12.1&nbsp;统一社会信用代码：</label>
    <div class="col-xs-3 pull-left">
      <p class="form-control-static"><span style="color:${supplierInfo.uniformSocialCreditCode eq version.uniformSocialCreditCode ? '' : 'red;'}">
        ${empty version.uniformSocialCreditCode ? '无' : version.uniformSocialCreditCode}</span>
        <c:if test="${supplierInfo.uniformSocialCreditCode != version.uniformSocialCreditCode}">(${supplierInfo.uniformSocialCreditCode})</c:if>
      </p>
    </div>
  </div>

  <div class="form-group ms-form-group">
    <label class="control-label col-xs-3">13.1&nbsp;<span class="color-red">*</span>体系文件：</label>
    <div class="col-xs-9 pull-left">
      <p class="form-control-static">
        ${empty supplierInfo.standardDocument ? '无' : supplierInfo.standardDocumentString}
      </p>
    </div>
  </div>

  <%--     <div class="form-group ms-form-group">
        <label class="control-label col-xs-3">13.2&nbsp;<span class="color-red">*</span>体系文件有效期：</label>
        <div class="col-xs-7 pull-left">
          <p class="form-control-static">
            <fmt:formatDate value="${supplierInfo.standardDocumentDate}" pattern="yyyy-MM-dd"/>
          </p>
        </div>
      </div> --%>

  <div class="form-group  ms-form-group">
    <label class="control-label col-xs-4" style="color:${empty version.businessLicense ? '' : 'red;'}">14.1&nbsp;<span
      class="color-red">*</span>营业执照原件扫描件：</label>
    <div class="col-xs-7 pull-left upload-cover">
      <p class="form-control-static">
        <c:choose>
          <c:when test="${empty supplierInfo.businessLicense and empty version.businessLicense}">暂未上传</c:when>
          <c:when test="${not empty supplierInfo.businessLicense and empty version.businessLicense}">
            <a href="${supplierInfo.businessLicense}" target='_BLANK' download="${supplier.name}营业执照原件扫描件">营业执照原件扫描件</a>
            <span
              style="color:${supplierInfo.businessLicenseDate eq version.businessLicenseDate ? '' : 'red;'}">(有效日期：<fmt:formatDate
              value="${supplierInfo.businessLicenseDate}" pattern="yyyy-MM-dd"/>)</span>
          </c:when>
          <c:otherwise>
            新：<a href="${version.businessLicense}" target='_BLANK' download="${supplier.name}营业执照原件扫描件">营业执照原件扫描件</a>
            <span
              style="color:${supplierInfo.businessLicenseDate eq version.businessLicenseDate ? '' : 'red;'}">(有效日期：<fmt:formatDate
              value="${version.businessLicenseDate}" pattern="yyyy-MM-dd"/>)</span>
            旧：<a href="${supplierInfo.businessLicense}" target='_BLANK' download="${supplier.name}营业执照原件扫描件">营业执照原件扫描件</a>
            <span
              style="color:${supplierInfo.businessLicenseDate eq version.businessLicenseDate ? '' : 'red;'}">(有效日期：<fmt:formatDate
              value="${supplierInfo.businessLicenseDate}" pattern="yyyy-MM-dd"/>)</span>
          </c:otherwise>
        </c:choose>
      </p>
    </div>
  </div>

  <div class="form-group  ms-form-group">
    <label class="control-label col-xs-4" style="color:${empty version.transportCert ? '' : 'red;'}">14.2&nbsp;<span
      class="color-red">*</span>道路运输许可证：</label>
    <div class="col-xs-7 pull-left upload-cover">
      <p class="form-control-static">
        <c:choose>
          <c:when test="${empty supplierInfo.transportCert and empty version.transportCert}">暂未上传</c:when>
          <c:when test="${not empty supplierInfo.transportCert and empty version.transportCert}">
            <a href="${supplierInfo.transportCert}" target='_BLANK' download="${supplier.name}道路运输许可证">道路运输许可证</a>
            <span
              style="color:${supplierInfo.transportCert eq version.transportCert ? '' : 'red;'}">(有效日期：<fmt:formatDate
              value="${supplierInfo.transportCertDate}" pattern="yyyy-MM-dd"/>)</span>
          </c:when>
          <c:otherwise>
            新：<a href="${version.transportCert}" target='_BLANK' download="${supplier.name}道路运输许可证">道路运输许可证</a>
            <span
              style="color:${supplierInfo.transportCertDate eq version.transportCertDate ? '' : 'red;'}">(有效日期：<fmt:formatDate
              value="${version.transportCertDate}" pattern="yyyy-MM-dd"/>)</span>
            旧：<a href="${supplierInfo.transportCert}" target='_BLANK' download="${supplier.name}道路运输许可证">道路运输许可证</a>
            <span
              style="color:${supplierInfo.transportCertDate eq version.transportCertDate ? '' : 'red;'}">(有效日期：<fmt:formatDate
              value="${supplierInfo.transportCertDate}" pattern="yyyy-MM-dd"/>)</span>
          </c:otherwise>
        </c:choose>
      </p>
    </div>
  </div>

  <div class="form-group  ms-form-group">
    <label class="control-label col-xs-4" style="color:${empty version.qualitySystem ? '' : 'red;'}">15.1&nbsp;质量体系认证证书原件扫描件：</label>
    <div class="col-xs-7 pull-left upload-cover">
      <p class="form-control-static">
        <c:choose>
          <c:when test="${empty supplierInfo.qualitySystem and empty version.qualitySystem}">暂未上传</c:when>
          <c:when test="${not empty supplierInfo.qualitySystem and empty version.qualitySystem}">
            <a href="${supplierInfo.qualitySystem}" target='_BLANK' download="${supplier.name}质量体系认证证书原件扫描件">质量体系认证证书原件扫描件</a>
            <span
              style="color:${supplierInfo.qualitySystem eq version.qualitySystem ? '' : 'red;'}">(有效日期：<fmt:formatDate
              value="${supplierInfo.standardDocumentDate}" pattern="yyyy-MM-dd"/>)</span>
          </c:when>
          <c:otherwise>
            新：<a href="${version.qualitySystem}" target='_BLANK' download="${supplier.name}质量体系认证证书原件扫描件">质量体系认证证书原件扫描件</a>
            <span
              style="color:${supplierInfo.qualitySystemDate eq version.qualitySystemDate ? '' : 'red;'}">(有效日期：<fmt:formatDate
              value="${version.standardDocumentDate}" pattern="yyyy-MM-dd"/>)</span>
            旧：<a href="${supplierInfo.qualitySystem}" target='_BLANK' download="${supplier.name}质量体系认证证书原件扫描件">质量体系认证证书原件扫描件</a>
            <span
              style="color:${supplierInfo.qualitySystemDate eq version.qualitySystemDate ? '' : 'red;'}">(有效日期：<fmt:formatDate
              value="${supplierInfo.standardDocumentDate}" pattern="yyyy-MM-dd"/>)</span>
          </c:otherwise>
        </c:choose>
      </p>
    </div>
  </div>

  <div class="form-group  ms-form-group">
    <label class="control-label col-xs-4 " style="color:${empty version.leaseContract ? '' : 'red;'}">15.2&nbsp;<span
      class="color-red">*</span>办公及停车场地租房/购房合同扫描件：</label>
    <div class="col-xs-7 pull-left upload-cover">
      <p class="form-control-static">
        <c:choose>
          <c:when test="${empty supplierInfo.leaseContract and empty version.leaseContract}">暂未上传</c:when>
          <c:when test="${not empty supplierInfo.leaseContract and empty version.leaseContract}">
            <a href="${supplierInfo.leaseContract}" target='_BLANK' download="${supplier.name}办公及停车场地租房/购房合同扫描件">办公及停车场地租房/购房合同扫描件</a>
            <span
              style="color:${supplierInfo.leaseContract eq version.leaseContract ? '' : 'red;'}">(有效日期：<fmt:formatDate
              value="${supplierInfo.leaseContractDate}" pattern="yyyy-MM-dd"/>)</span>
          </c:when>
          <c:otherwise>
            新：<a href="${version.leaseContract}" target='_BLANK' download="${supplier.name}办公及停车场地租房/购房合同扫描件">办公及停车场地租房/购房合同扫描件</a>
            <span
              style="color:${supplierInfo.leaseContractDate eq version.leaseContractDate ? '' : 'red;'}">(有效日期：<fmt:formatDate
              value="${version.leaseContractDate}" pattern="yyyy-MM-dd"/>)</span>
            旧：<a href="${supplierInfo.leaseContract}" target='_BLANK' download="${supplier.name}办公及停车场地租房/购房合同扫描件">办公及停车场地租房/购房合同扫描件</a>
            <span
              style="color:${supplierInfo.leaseContractDate eq version.leaseContractDate ? '' : 'red;'}">(有效日期：<fmt:formatDate
              value="${supplierInfo.leaseContractDate}" pattern="yyyy-MM-dd"/>)</span>
          </c:otherwise>
        </c:choose>
      </p>
    </div>
  </div>

  <div class="form-group  ms-form-group">
    <label class="control-label col-xs-4 "
           style="color:${empty version.changeForm ? '' : 'red;'}">16&nbsp;变更申报表：</label>
    <div class="col-xs-7 pull-left upload-cover">
      <p class="form-control-static">
        <c:choose>
          <c:when test="${empty version.changeForm}">暂未上传</c:when>
          <c:otherwise>
            <a href="${version.changeForm}" target='_BLANK' download="${supplier.name}变更申报表">变更申报表</a>
          </c:otherwise>
        </c:choose>
      </p>
    </div>

  </div>

</div>